const DeptTypeEnum = {
  OK: { code: 0, value: '正常' },
  STOP: { code: 1, value: '停用' },
  AUDIT: { code: 2, value: '审核' },
  getValue: (code) => {
    const array = Object.values(DeptTypeEnum);
    return array[array.map((obj) => {
      return obj.code
    }).indexOf(code)].value;
  }
};

module.exports = {
  DeptTypeEnum: DeptTypeEnum
}
